package com.weasel.weixin.commons.session.dao;

import com.weasel.weixin.commons.session.WeixinSession;

import java.util.Collection;

/**
 * Created by Dylan on 2015/12/8.
 */
public interface SessionDAO {

    /**
     * @param sessionid
     * @return
     */
    WeixinSession get(String sessionid);

    /**
     * @return
     */
    Collection<WeixinSession> list();

    /**
     * @param session
     */
    void create(WeixinSession session);

    /**
     * @param sessionid
     * @return
     */
    boolean delete(String sessionid);

    /**
     * @param session
     * @return
     */
    boolean update(WeixinSession session);
}
